home *** CD-ROM | disk | FTP | other *** search
/ Champak Vol A-4 / (Vol A-4) Vol. A4.iso / Games / smashing.swf / scripts / DefineSprite_14_mcExplosion / frame_8 / DoAction.as
Text File  |  2008-03-12  |  449b  |  15 lines

  1. i = 1;
  2. while(_parent.brickNumber >= i)
  3. {
  4.    brickPath = _parent.bricks["brick" + i];
  5.    if((brickPath.destructible or brickPath.multiHit) && !brickPath.invisible && !brickPath.brickSmashed && (brickPath.brickType != "bonus" or brickPath.pointsWorth == "T.N.T."))
  6.    {
  7.       if(mcPath.hitTest(brickPath._x,brickPath._y,false))
  8.       {
  9.          brickPath.blownAway = true;
  10.          _parent.removeBrick(brickPath);
  11.       }
  12.    }
  13.    i++;
  14. }
  15.